package com.shop.model.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 定时器执行日志实体类
 */
@Data
@NoArgsConstructor
public class ScheduleLog {
    private Integer id;
    private Integer jobId;
    private Date startTime;
    private Date endTime;
    private long intervals;
    private String status;
    private String msg;
    private Date createTime;

    public ScheduleLog(Integer jobId, Date startTime, Date endTime, long interval, String status, String msg) {
        this.jobId = jobId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.intervals = interval;
        this.status = status;
        this.msg = msg;
    }
}
